// vite.config.ts
import { defineConfig } from "file:///E:/workspace/1-my-project/langChain-demo/node-cli/node_modules/.pnpm/vite@5.4.19_@types+node@20.19.2/node_modules/vite/dist/node/index.js";
import { resolve } from "path";
import dts from "file:///E:/workspace/1-my-project/langChain-demo/node-cli/node_modules/.pnpm/vite-plugin-dts@3.9.1_@type_ce2c98c4d5baf016372eece5d1300bde/node_modules/vite-plugin-dts/dist/index.mjs";
import { fileURLToPath } from "url";
import { dirname } from "path";
var __vite_injected_original_import_meta_url = "file:///E:/workspace/1-my-project/langChain-demo/node-cli/vite.config.ts";
var __filename = fileURLToPath(__vite_injected_original_import_meta_url);
var __dirname = dirname(__filename);
var vite_config_default = defineConfig({
  plugins: [
    dts({
      insertTypesEntry: true,
      rollupTypes: true
    })
  ],
  build: {
    lib: {
      entry: resolve(__dirname, "src/index.ts"),
      name: "GenwaveJSCLI",
      formats: ["es", "cjs"],
      fileName: (format) => `index.${format === "es" ? "js" : "cjs"}`
    },
    rollupOptions: {
      external: [
        "commander",
        "chalk",
        "ora",
        "inquirer",
        "axios",
        "fs-extra",
        "cosmiconfig",
        "simple-git",
        "semver",
        "node:fs",
        "node:path",
        "node:process",
        "node:url",
        "node:child_process",
        "node:os",
        /^node:/
      ],
      output: {
        globals: {
          commander: "Commander",
          chalk: "Chalk",
          ora: "Ora",
          inquirer: "Inquirer",
          axios: "Axios",
          "fs-extra": "FsExtra",
          cosmiconfig: "Cosmiconfig",
          "simple-git": "SimpleGit",
          semver: "Semver"
        }
      }
    },
    target: "node16",
    minify: false,
    sourcemap: true,
    ssr: true
  },
  resolve: {
    alias: {
      "@": resolve(__dirname, "src"),
      "@/core": resolve(__dirname, "src/core"),
      "@/utils": resolve(__dirname, "src/utils"),
      "@/types": resolve(__dirname, "src/types"),
      "@/commands": resolve(__dirname, "src/commands")
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25ma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9KSxcclxuICBdLFxyXG4gIGJ1aWxkOiB7XHJcbiAgICBsaWI6IHtcclxuICAgICAgZW50cnk6IHJlc29sdmUoX19kaXJuYW1lLCAnc3JjL2luZGV4LnRzJyksXHJcbiAgICAgIG5hbWU6ICdHZW53YXZlSlNDTEknLFxyXG4gICAgICBmb3JtYXRzOiBbJ2VzJywgJ2NqcyddLFxyXG4gICAgICBmaWxlTmFtZTogKGZvcm1hdCkgPT4gYGluZGV4LiR7Zm9ybWF0ID09PSAnZXMnID8gJ2pzJyA6ICdjanMnfWAsXHJcbiAgICB9LFxyXG4gICAgcm9sbHVwT3B0aW9uczoge1xyXG4gICAgICBleHRlcm5hbDogW1xyXG4gICAgICAgICdjb21tYW5kZXInLFxyXG4gICAgICAgICdjaGFsaycsXHJcbiAgICAgICAgJ29yYScsXHJcbiAgICAgICAgJ2lucXVpcmVyJyxcclxuICAgICAgICAnYXhpb3MnLFxyXG4gICAgICAgICdmcy1leHRyYScsXHJcbiAgICAgICAgJ2Nvc21pY29uZmlnJyxcclxuICAgICAgICAnc2ltcGxlLWdpdCcsXHJcbiAgICAgICAgJ3NlbXZlcicsXHJcbiAgICAgICAgJ25vZGU6ZnMnLFxyXG4gICAgICAgICdub2RlOnBhdGgnLFxyXG4gICAgICAgICdub2RlOnByb2Nlc3MnLFxyXG4gICAgICAgICdub2RlOnVybCcsXHJcbiAgICAgICAgJ25vZGU6Y2hpbGRfcHJvY2VzcycsXHJcbiAgICAgICAgJ25vZGU6b3MnLFxyXG4gICAgICAgIC9ebm9kZTovLFxyXG4gICAgICBdLFxyXG4gICAgICBvdXRwdXQ6IHtcclxuICAgICAgICBnbG9iYWxzOiB7XHJcbiAgICAgICAgICBjb21tYW5kZXI6ICdDb21tYW5kZXInLFxyXG4gICAgICAgICAgY2hhbGs6ICdDaGFsaycsXHJcbiAgICAgICAgICBvcmE6ICdPcmEnLFxyXG4gICAgICAgICAgaW5xdWlyZXI6ICdJbnF1aXJlcicsXHJcbiAgICAgICAgIC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